/*
 * collection.h
 *
 *  Created on: Feb 26, 2011
 *      Author: thienlong
 */

#ifndef COLLECTION_H_
#define COLLECTION_H_
#include <stdint.h>
#include <stdbool.h>
#include "mem_storage.h"

//define new type. pointer type
typedef void* object;
typedef uint32_t hash_t;

typedef void (*del_fn)(void*, mem_storage*, mem_type);
typedef hash_t (*hash_fn)(object);
typedef bool (*eq_fn)(object, object);
typedef int (*cmp_fn)(object, object);
#endif /* COLLECTION_H_ */
